import java.io.*;
public class Main{
	public static void main(String[] a){
		float m,s;
		int n;
		String p="";
		try{
			BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
			p=in.readLine();
		}catch(IOException c){}
		m=Float.parseFloat(p);
		n=(int)m;
		s=m-n;
		System.out.println("整数部分："+n);
		System.out.println(s);
		System.out.printf("%.4f",s);
	}
}